Release 10.1A: OpenEdge Development:
Progress 4GL Reference
AT phrase
The AT phrase of the Format phrase allows explicit positioning of frame objects, either by row and column or by pixels. The AT phrase of the Frame phrase allows explicit positioning of frames with windows or parent frames.
Syntax
nThe column, measured in character units. This option is not supported for the Frame phrase. You cannot use the alignment options with this syntax. If you use this option, Progress chooses the row based on the previous widget and form item layout of the frame. For information on form items, see the DEFINE FRAME statement or FORM statement.
COLUMNcolumnThe column, measured in character units.
COLUMN-OFreference-pointIndicates the column position of the field relative to another field-level widget previously defined in the frame. This option is not supported for the Frame phrase. This is the syntax for
reference-point:
In this syntax,
widgetis a reference to a field-level widget previously defined in the frame, andoffsetis a positive decimal value. For example, ifwidgetis positioned at COLUMN 10, then COLUMN-OF widget + 2.5 positions the field at column 12.5.XxThe X pixel coordinate.
X-OFreference-pointIndicates the X co-ordinate of the field relative to another field-level widget previously defined in the frame. This option is not supported for the Frame phrase. The co-ordinate is expressed as the co-ordinate of a widget previously defined in the frame, plus or minus an offset. The offset must be either a constant or preprocessor constant and must be a positive integer.
ROWrowThe row, measured in character units.
ROW-OFreference-pointIndicates the row of the field relative to another field-level widget previously defined in the frame. This option is not supported for the Frame phrase. The row is expressed as the row of a widget previously defined in the frame, plus or minus an offset. The offset must be either a constant or preprocessor constant and must be a positive decimal value.
YyThe Y pixel coordinate.
Y-OFreference-pointIndicates the Y co-ordinate of the field relative to another field-level widget previously defined in the frame. This option is not supported for the Frame phrase. The co-ordinate is expressed as the co-ordinate of a widget previously defined in the frame, plus or minus an offset. The offset must be either a constant or preprocessor constant and must be a positive integer.
COLON-ALIGNED | LEFT-ALIGNED | RIGHT-ALIGNEDSpecifies whether to align the left edge of the field, right edge of the field, or the colon of the field label, with the specified position. This option can only be used in combination with the ROW and COLUMN options. This option is not supported for the Frame phrase.
ExamplesThe following example uses the AT phrase to position fields within a frame:
The following example uses relative positioning to position fields relative to the cust-num field:
Notes
- The AT phrase does not left justify the data. It simply specifies the position of the data area. If the data is right justified it may appear to be farther right than you expect.
- If you position a child frame completely outside the virtual area of its parent frame, Progress raises ERROR at run time when the frame is realized.
- For SpeedScript, you can position objects by row or column, not by pixels.
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |